package scholarsearch.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;

public class ServiceActivity extends Activity{
	public final static int SUCCESS_RETURN_CODE = 1;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent intent = new Intent();
		Bundle b = new Bundle();
		b.putString("TEXT", "caricaDati");
		intent.putExtras(b);
		setResult(SUCCESS_RETURN_CODE, intent);
		finish();
	}
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
	    if (keyCode == KeyEvent.KEYCODE_BACK) {
	    	//non fare nulla
	    	return true;
	    }
	    return super.onKeyDown(keyCode, event);
	}
}
